<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../css/layout.css" rel="stylesheet" type="text/css" />
<link href="css/shop.manage.css" rel="stylesheet" type="text/css" />
<smart>include file ='../head.config.html'</smart>
<script>
$().ready(function() {
	$('#icon_close_search_box').click(
		function(){ $('#filter').slideUp('slow',function(){$('#showcontr').slideDown('fast')})}
	);
	$('#showcontr').click(
		function(){ $('#showcontr').slideUp('fast',function(){$('#filter').slideDown('slow')})}
	);
});
</script>
</head>
<body>
<div id="container760"> <smart>include file ='../header.html'</smart> <smart>include file ='../PathLinksLevel.html'</smart> <smart>include file ='own_menu.html'</smart>
  <div style="float:right; width:100%; margin:0 -160px 0 10px; display:inline">
    <div style="margin:0 160px 0 0">
      <div id="filter">
        <div id="filtercon">
          <div id="filtermain">
            <div id="filtermaincon" style=" height:60px"><img src="..<smart>$templatepath</smart>/member/images/icon_close_search_box.gif" alt="点击隐藏条件" name="icon_close_search_box" id="icon_close_search_box" style="float:right" />
              <form action="own_order.php?action=<smart> $order_case </smart>" method="post">
			  <input name="time" type="hidden" value="<smart> $time </smart>" />
			  <DL>
                <DT class="dt1">宝贝名称： </DT>
                <DD class="dd1">
                  <INPUT class=item_name maxLength=50 name=p_name />
                </DD>
                <DT class="dt2">卖家昵称： </DT>
                <DD class="dd2">
                  <INPUT class=seller_name name=seller_nick />
                </DD><br />
                <DT class="dt3">成交时间： </DT>
                <DD class="dd3">从
                  <INPUT class="plain deal_date" name="start_time" />
                  到
                  <INPUT class="plain deal_date" name="end_time">(xxxx-xx-xx)                </DD>
                <input type="submit" value="查询" />
                </DL>
			  </form>

            </div>
	
          </div>

        </div>
	
      </div>
      <div id="showcontr"><a href="#">显示条件筛选框</a></div>
      <UL class="item_list_title">
	  <smart> if $order_case eq 'bought' </smart>
		  <smart> if $time eq '' </smart>
			<LI class="selected"><A href="own_order.php?action=bought"><STRONG>最近买的宝贝</STRONG></A> </LI>
		  <smart> else </smart>  
			<LI ><A href="own_order.php?action=bought"><STRONG>最近买的宝贝</STRONG></A> </LI>
		  <smart> /if </smart>
		  <smart> if $time eq '1' </smart>
			<LI class="selected"><A href="own_order.php?action=bought&time=1">六个月前买的宝贝</A> </LI>
		  <smart> else </smart>  
			<LI><A href="own_order.php?action=bought&time=1">六个月前买的宝贝</A> </LI>
		  <smart> /if </smart>
		<smart> /if </smart> 
		<smart> if $order_case eq 'sold' </smart>
		  <smart> if $time eq '' </smart>
			<LI class="selected"><A href="own_order.php?action=sold"><STRONG>最近卖的宝贝</STRONG></A> </LI>
		  <smart> else </smart>  
			<LI ><A href="own_order.php?action=bought"><STRONG>最近卖的宝贝</STRONG></A> </LI>
		  <smart> /if </smart>
		  <smart> if $time eq '1' </smart>
			<LI class="selected"><A href="own_order.php?action=sold&time=1">六个月前卖的宝贝</A> </LI>
		  <smart> else </smart>  
			<LI><A href="own_order.php?action=bought&time=1">六个月前卖的宝贝</A> </LI>
		  <smart> /if </smart>
		<smart> /if </smart> 
      </UL>
      <div id="item_list_border">
        <table id="item_list_info">
          <tr>
            <th>图片</th>
            <th>宝贝名称</th>
		<smart> if $order_case eq 'sold' </smart>
            <th>联络买家</th>
		<smart> /if </smart>
		<smart> if $order_case eq 'bought' </smart>
            <th>联络卖家</th>
		<smart> /if </smart>
            <th>价格</th>
            <th>交易状态</th>
			<th>操作</th>
            <th>评价</th>
          </tr>
          <smart> foreach item = goods from = $product_order_array </smart>
          <tr>
            <td style="text-align:center"><a href="../home/product.php?action=view&pid=<smart> $goods.p_code </smart>" target="_blank"><img src="../<smart> $goods.p_pic|default:'templates/default/home/images/default.jpg' </smart>" alt="<smart>$goods.p_name</smart>" class="p_pic50" /></a></td>
            <td><div class="cc"><a href="../home/product.php?action=view&pid=<smart> $goods.p_code </smart>"><smart> $goods.p_name </smart></a></div></td>
            <td style="">
			<smart> if $order_case eq 'sold' && $goods.anonymous eq '1' </smart>
				匿名买家
			<smart> else </smart>
				<a href="../store/userinfo.php?userid=<smart> $goods.member_id </smart>" target="_blank"><smart> $goods.member_nick </smart></a>
			<smart> /if </smart>
			</td>
            <td class="b font666" style=""><smart> $goods.unit_price </smart></td>
            <td class="font666" style=""><smart> if $goods.sp_state == "0" </smart><smart> if $goods.buyer_id == $member_id </smart><a href="own_order.php?action=payed&spcode=<smart> $goods.sp_code </smart>" target="_blank">等待买家付款</a><smart> else </smart>等待买家付款<smart> /if </smart><smart> /if </smart> <smart> if $goods.sp_state == "1" </smart><smart> if $goods.seller_id == $member_id </smart><a href="own_order.php?action=delived&spcode=<smart> $goods.sp_code </smart>" target="_blank">买家已付款，等待卖家发货</a><smart> else </smart>买家已付款，等待卖家发货<smart> /if </smart><smart> /if </smart> <smart> if $goods.sp_state == "2" </smart><smart> if $goods.buyer_id == $member_id </smart><a href="own_order.php?action=received&spcode=<smart> $goods.sp_code </smart>" target="_blank">卖家已发货，等待买家确认</a><smart> else </smart>卖家已发货，等待买家确认<smart> /if </smart><smart> /if </smart> <smart> if $goods.sp_state == "3" </smart>交易成功<smart> /if </smart></td>
            <td class="b font666">
			<smart> if $goods.sp_state <> "3" </smart> 
				<smart> if $order_case eq "sold" </smart> 
					<a href="own_complaint.php?action=complaint_buy&step=one&spid=<smart> $goods.sp_id </smart>">投诉</a>
				<smart> elseif $order_case eq "bought" </smart> 
					<a href="own_complaint.php?action=complaint_sell&step=one&spid=<smart> $goods.sp_id </smart>">投诉</a>
				<smart> /if </smart>
			<smart> else </smart> 
				投诉 
			<smart> /if </smart>
			</td>
			<td style="text-align:center"><span class="font999">
            <smart> $goods.score_say </smart></span>
			</td>
          </tr>
          <smart>/foreach</smart>
        </table>
      </div><smart> $page_list </smart>
	  
	  <div id="reviewed_buyedproduct" style="width:98%; height:100px; float:left; background-image:url(../templates/default/home/images/h2_bk.gif); background-repeat:repeat-x; background-position:left top; padding-left:8px; margin-top:10px">
	<smart> include file ='../home/product.bought.html' </smart>
</div>
    </div>
	
  </div>
  <smart>include file ='../footer.html'</smart></div>
</body>
</html>
